package com.baosight.sczx.zm.service;

import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.ep.ServiceEPBase;
import com.baosight.sczx.common.zm.basetools.StaticTools;
import com.baosight.sczx.zm.cs.domain.ZMCSEngineering;

/**
 * <p>Title: ServiceZM04.java</p>
 * <p>Description: </p>
 * <p>Copyright: Baosight Software LTD.co Copyright (c) 2002</p>
 * <p>Company: Baosight Software</p>
 * @author 张志芳
 * @version 1.0
 * <pre>Histroy:
 *          2011-6-28 下午01:39:59  张志芳  Create
 *</pre>
 */
public class ServiceZM04 extends ServiceEPBase {
	
	/**
	 * 生产过程中预警管理中用到
	 * <p>Function: queryEngineeringPlanData</p>
	 * <p>Description: </p>
	 * <p>return value:EiInfo</p>
	 * <p>throws Exception:</p>
	 * <p>History:
	 *    2011-7-14下午05:00:56 张志芳
	 * </p>
	 *
	 */
	public EiInfo queryEngineeringPlanData(EiInfo inInfo)
	{	
		StaticTools.setQueryParameters(inInfo, "fdStatus", "1", true);
		StaticTools.setQueryParameters(inInfo, "fdType", "1", true);
		EiInfo outInfo = super.query(inInfo,"ZMCSEngineering.queryCustomview",new ZMCSEngineering());
		return outInfo;
	}
	

	/**
	 * 生产文档中用到的工程的公共选择
	 * <p>Function: queryEngineering</p>
	 * <p>Description: </p>
	 * <p>return value:EiInfo</p>
	 * <p>throws Exception:</p>
	 * <p>History:
	 *    2011-7-14下午05:00:56 张志芳
	 * </p>
	 *
	 */
	public EiInfo queryEngineering(EiInfo inInfo)
	{
		StaticTools.setQueryParameters(inInfo, "notFdStatus", "2", true);
		EiInfo outInfo = super.query(inInfo,"ZMCSEngineering.queryCustomview",new ZMCSEngineering());
		return outInfo;
	}
	
	/**
	 * 供工程的界面视图customview使用，显示所有非竣工的工程信息
	 * <p>Function: engineeringForCustomview</p>
	 * <p>Description: </p>
	 * <p>return value:EiInfo</p>
	 * <p>throws Exception:</p>
	 * <p>History:
	 *    2011-8-11下午04:08:47 张小飞
	 * </p>
	 *
	 */
	public EiInfo engineeringForCustomview(EiInfo inInfo)
	{		
		StaticTools.setQueryParameters(inInfo, "notFdStatus", "2", true);
		EiInfo outInfo = super.query(inInfo,"ZMCSEngineering.queryCustomview",new ZMCSEngineering());
		return outInfo;
	}
	
}
